package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.NgsWkfjq4;
import com.zhijian.medical.entity.vo.request.NgsWkfjq4SearchVo;
import com.zhijian.medical.entity.vo.response.NgsWkfjq4Vo;

import java.util.List;

public interface NgsWkfjq4Mapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 根据实验id删除
     *
     * @param ngsId
     * @return
     */
    int deleteByNgsId(Long ngsId);

    int insert(NgsWkfjq4 record);

    int insertSelective(NgsWkfjq4 record);

    NgsWkfjq4 selectByPrimaryKey(Long id);

    /**
     * 实验id查询po
     *
     * @param ngsId
     * @return
     */
    NgsWkfjq4 selectByNgsId(Long ngsId);

    int updateByPrimaryKeySelective(NgsWkfjq4 record);

    int updateByPrimaryKey(NgsWkfjq4 record);

    int count(NgsWkfjq4SearchVo ngsWkfjq4SearchVo);

    List<NgsWkfjq4Vo> selectList(NgsWkfjq4SearchVo ngsWkfjq4SearchVo);

    NgsWkfjq4Vo selectVoById(Long id);

    /**
     * 实验id查询vo
     *
     * @param ngsId
     * @return
     */
    NgsWkfjq4Vo selectVoByNgsId(Long ngsId);

}